package org.junyi.login.controller;

import org.junyi.util.ArchivesLog;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class SystemRe {

	// 跳转注册界面
	@RequestMapping("/toRegister")
	@ArchivesLog(operationType = "跳转:", operationName = "跳转注册界面")
	public String toRegister() {
		return "views/register";
	}

	// 跳转登录界面
	@RequestMapping("/toLogin")
	@ArchivesLog(operationType = "系统跳转:", operationName = "跳转登录界面")
	public String toLogin() {
		return "views/login";
	}

	// 权限不足界面
	@RequestMapping("/toQx")
	@ArchivesLog(operationType = "系统跳转:", operationName = "跳转权限不足界面")
	public String toQx() {
		return "views/quanxian";
	}

	// 跳转的 主界面
	@RequestMapping("/index")
	@ArchivesLog(operationType = "系统跳转:", operationName = "跳转主界面")
	public String toIndex() {
		return "views/index";
	}

	// 跳转到用户显示界面
	@RequestMapping("/user")
	@ArchivesLog(operationType = "系统跳转:", operationName = "跳转用户显示界面")
	public String toUser() {
		return "views/user_table";
	}

	// 跳转到角色显示界面
	@RequestMapping("/role")
	@ArchivesLog(operationType = "系统跳转:", operationName = "显示角色")
	public String toRole() {
		return "views/role_table";
	}

	// 跳转到资源显示界面
	@RequestMapping("/Perms")
	@ArchivesLog(operationType = "系统跳转:", operationName = "显示资源")
	public String toPerms() {
		return "views/permission";
	}

	// 跳转到订单界面
	@RequestMapping("/order")
	@ArchivesLog(operationType = "系统跳转:", operationName = "跳转订单界面")
	public String toorder() {
		return "views/orders";
	}

	// 跳转到顾客界面
	@RequestMapping("/customer")
	@ArchivesLog(operationType = "系统跳转:", operationName = "跳转顾客界面")
	public String tocustomer() {
		return "views/customer_table";
	}

	// 跳转到员工界面
	@RequestMapping("/emp")
	@ArchivesLog(operationType = "系统跳转:", operationName = "跳转员工显示")
	public String toEmp() {
		return "views/emp_table";
	}

	// 跳转到日志界面
	@RequestMapping("/log")
	@ArchivesLog(operationType = "系统跳转:", operationName = "日志显示界面")
	public String toLlog() {
		return "views/log_table";
	}

}
